/**
 * 验证码表
 */

const seq = require('../seq')
const { STRING, DECIMAL, INTEGER } = require('../types')//sequelize的数据类型

const code = seq.define('code', {
    id: {
        type: INTEGER,
        primaryKey: true,
        allowNull: false,
        autoIncrement: true
    },
    code: {
        type: STRING,
        comment: '验证码'
    },
    mobile: {
        type: STRING,
        comment: '手机号码'
    },
})

module.exports = code

